package com.lanjiu.lib.business;

public interface TransmissionConstant {

    //原始图片视频传输,分为群传输和好友传输
    String ORIGINAL_PICTURE_VIDEO_TRANSMISSION_GUEST_GROUP_GUEST_MEMBER_GUEST_USER = "GuestGroupGuestMemberGuestUser";
    String ORIGINAL_PICTURE_VIDEO_TRANSMISSION_GUEST_GROUP_GUEST_MEMBER_REGISTERED_USER = "GuestGroupGuestMemberRegisteredUser";
    String ORIGINAL_PICTURE_VIDEO_TRANSMISSION_GUEST_GROUP_REGISTERED_MEMBER_GUEST_USER = "GuestGroupRegisteredMemberGuestUser";
    String ORIGINAL_PICTURE_VIDEO_TRANSMISSION_GUEST_GROUP_REGISTERED_MEMBER_REGISTERED_USER = "GuestGroupRegisteredMemberRegisteredUser";
    String ORIGINAL_PICTURE_VIDEO_TRANSMISSION_REGISTERED_GROUP_GUEST_MEMBER_GUEST_USER = "RegisteredGroupGuestMemberGuestUser";
    String ORIGINAL_PICTURE_VIDEO_TRANSMISSION_REGISTERED_GROUP_GUEST_MEMBER_REGISTERED_USER = "RegisteredGroupGuestMemberRegisteredUser";
    String ORIGINAL_PICTURE_VIDEO_TRANSMISSION_REGISTERED_GROUP_REGISTERED_MEMBER_GUEST_USER = "RegisteredGroupRegisteredMemberGuestUser";
    String ORIGINAL_PICTURE_VIDEO_TRANSMISSION_REGISTERED_GROUP_REGISTERED_MEMBER_REGISTERED_USER = "RegisteredGroupRegisteredMemberRegisteredUser";
    String ORIGINAL_PICTURE_VIDEO_TRANSMISSION_FRIENDS_REGISTERED_USER = "RegisteredUserFriend";
    String ORIGINAL_PICTURE_VIDEO_TRANSMISSION_FRIENDS_GUEST_USER = "GuestUserFriend";
    String ORIGINAL_AVATAR_TRANSMISSION_FRIENDS_REGISTERED_USER = "RegisteredUserAvatar";
    String ORIGINAL_AVATAR_TRANSMISSION_FRIENDS_GUEST_USER = "GuestUserAvatar";

    String ORIGINAL_APK_TRANSMISSION_FRIENDS_USER = "UserApk";

    String ORIGINAL_PICTURE_VIDEO_TRANSMISSION_VIDEO = "VIDEO";
    String ORIGINAL_PICTURE_VIDEO_TRANSMISSION_PICTURE = "PICTURE";

    // FileContent package_kind
    String FILE_HEAD = "head";
    String FILE_FRAGMENT = "fragment";
    String FILE_FOOT = "foot";
    String FILE_DOWNLOAD = "download";
    String FILE_NON_EXISTENT = "non-existent";

    //当前服务模块类型 RegisteredUser,Tourists  Current service module type
    String CURRENT_SERVICE_MODULE_REGISTERED_USER_TYPE = "RegisteredUser";
    String CURRENT_SERVICE_MODULE_TOURISTS_TYPE = "Tourists";

    String CONSTANT_TOKEN = "token";
    String CRC_FAILURE = "failure";
    String CRC_SUCCESS = "success";
    int FRAGMENT_LENGTH = 8 * 100 * 1024;//b

    String FILE_TRANSMISSION_SP_NAME = "file_transmission_sp_name";

    int DEFAULT_VERIFY_FAIL_COUNT = 3;
    int DEFAULT_IO_EXCEPTION_COUNT = 3;
    int DEFAULT_SEND_FAIL_COUNT = 3;

    int TRANSMISSION_FAIL = 500;        // 传输失败
    int TRANSMISSION_VERIFY_FAIL = 501; // 验证异常代码
    int TRANSMISSION_IO_EXCEPTION = 502; // IO异常代码
    int TRANSMISSION_UNKNOWN_KIND = 503; // 未知的Package_kind
    int TRANSMISSION_SEND_FAIL = 504; // 发送失败
    int TRANSMISSION_FILE_NOT_EXISTS = 505; // 文件不存在
    int TRANSMISSION_ENTITY_NULL = 506; // 实体为空
    int TRANSMISSION_TASK_REPET = 507; // 任务已存在
    int TRANSMISSION_TASK_NOT_NETWORK = 508; // 无网络
    int TRANSMISSION_CONNECT_ERROR = 509; // 连接异常

    int HANDLER_WHAT_ON_START = 0;
    int HANDLER_WHAT_ON_PROGRESS = 1;
    int HANDLER_WHAT_ON_COMPLETE = 2;
    int HANDLER_WHAT_ON_ERROR = 3;
}